import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
export default new Router({
  routes: [
    {
      path: "/",
      name: "home",
      component: () => import('../views/Home.vue'),
      children: [
        // 查询所有
        {
          path: "queryAll",
          name: "queryAll",
          component: () => import('../assets/page/queryAll.vue'),
        },
        // 按条件查询
        {
          path: "queryBySome",
          name: "queryBySome",
          component: () => import('../assets/page/queryBySome.vue'),
        },
        // 插入一条
        {
          path: "addSome",
          name: "addSome",
          component: () => import('../assets/page/addSome.vue'),
        },
        // 删除一条
        {
          path: "deleteSome",
          name: "deleteSome",
          component: () => import('../assets/page/deleteSome.vue'),
        },
        // 修改一条
        {
          path: "updateSome",
          name: "updateSome",
          component: () => import('../assets/page/updateSome.vue'),
        },
      ]
    },
  ],
})